﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:tb="http://www.hardcodet.net/taskbar"
    xmlns:mc="clr-namespace:music_control"
    >

    <!-- Globally declared notify icon -->
    <tb:TaskbarIcon
        x:Key="MusicControlIcon"
        IconSource="pack://application:,,,/Icons/musiccontrol.ico"
        ToolTipText="music control"
        MenuActivation="All"
        >

        <tb:TaskbarIcon.ContextMenu>
            <ContextMenu>
                <MenuItem Header="Options" Command="{Binding OpenOptionCommand}" />
                <MenuItem Header="Close Application" Command="{Binding CloseAppCommand}" />
            </ContextMenu>
        </tb:TaskbarIcon.ContextMenu>


        <!--LeftClickCommand="{x:Static hc:HostsChangerUserControl.LeftClickCommand}"-->

        <!-- Assign user control as tray popup -->
        <!--<tb:TaskbarIcon.TrayPopup>
            <hc:HostsChangerUserControl />
        </tb:TaskbarIcon.TrayPopup>-->

        <!-- Assign tray popup as left-click command target (user control handles left-click) -->
        <!--<tb:TaskbarIcon.LeftClickCommandTarget>
            <Binding RelativeSource="{x:Static RelativeSource.Self}" Path="TrayPopup" />
        </tb:TaskbarIcon.LeftClickCommandTarget>-->

    </tb:TaskbarIcon>

</ResourceDictionary>